package main.java.design.state;

/**
 * <p></p>
 *
 * @author : wangdejian
 * @version 1.0
 * @date : 2020/6/26 17:07
 */
public class SlowDownState extends HeroState {

    @Override
    void speedUp() {
        super.gameContext.setHeroState(GameContext.SPEED_UP_STATE);
    }

    @Override
    void slowDown() {

        System.out.println("英雄被减速");
    }

    @Override
    void vertigo() {
        super.gameContext.setHeroState(GameContext.VERTIGO_STATE);
    }

    @Override
    void fear() {
        super.gameContext.setHeroState(GameContext.FEAR_STATE);
    }
}
